
<jsp:useBean id="playerSession" scope="session" class="com.player.jsp.SessionBean" />

<div id="header" style="background: grey">
  <div align="right">
    <% if (playerSession.isLoggedIn() && playerSession.isRegistered()) { %>
      ${playerSession.email}&nbsp;&nbsp;
      <a href="/html/account">Account</a>&nbsp;&nbsp;
      <a href="<%= playerSession.createLogoutURL("/") %>">Sign out</a>&nbsp;&nbsp;
    <% } else {%>
      <a href="/html/register">Register</a>&nbsp;&nbsp;
      <a href="<%= playerSession.createLoginURL("/") %>">Sign in</a>&nbsp;&nbsp;
    <% } %>
  </div>
</div>